# Contributor: Tuan Anh Tran <me@tuananh.org>
# Maintainer: Tuan Anh Tran <me@tuananh.org>
pkgname=walk
pkgver=1.7.0
pkgrel=2
pkgdesc="Terminal file manager"
url="https://github.com/antonmedv/walk"
arch="all"
license="MIT"
makedepends="go"
options="!check" # no tests available upstream
source="$pkgname-$pkgver.tar.gz::https://github.com/antonmedv/walk/archive/refs/tags/v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build -o bin/walk
}

package() {
	install -Dm0755 bin/walk -t "$pkgdir"/usr/bin/
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 -t "$pkgdir"/usr/share/doc/"$pkgname" README.md
}

sha512sums="
df1e7acc79a4ecf16657b3810a1368f8718488ce525ec0318b0963dac256e1cabd4c089e61c7084d2eaf0d2165969adba4f9a1a5e3f2ccc6bbec452413a33cec  walk-1.7.0.tar.gz
"
